-- GENERATED SPELL FOR [Blackwing Guardsman] --


function spell0_14456(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14456', 605, 1)
end

function spell1_14456(pUnit, Event) --@Dragonbane,n/a--
pUnit:FullCastSpellOnTarget(23967,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14456', 551, 1)
end

function spell2_14456(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14456', 583, 1)
end

function Sorts_14456(pUnit, Event)
local choix_sorts_14456 = math.random(0, 2)
if choix_sorts_14456 == 0 then
pUnit:RegisterEvent('spell0_14456', 1, 1)
end
if choix_sorts_14456 == 1 then
pUnit:RegisterEvent('spell1_14456', 1, 1)
end
if choix_sorts_14456 == 2 then
pUnit:RegisterEvent('spell2_14456', 1, 1)
end
end

function mob14456_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14456', math.random(1500, 3000), 1)
end

function mob14456_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14456_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14456_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14456, 1, 'mob14456_Action')
RegisterUnitEvent(14456, 2, 'mob14456_Leave')
RegisterUnitEvent(14456, 3, 'mob14456_Kill')
RegisterUnitEvent(14456, 4, 'mob14456_Die')
